<?php
/**
 * Created by PhpStorm.
 * User: CY
 * Date: 2018/3/23
 * Time: 9:45
 */

namespace app\api\validate;


class AddressNew extends BaseValidate
{
    // 为防止欺骗重写user_id，rule中严禁使用user_id
    // 获取post参数时过滤掉user_id，所有数据和user关联的外键统一使用user_id，而不要使用uid
    protected $rule = [
        'name' => 'require|isNotEmpty',
        'mobile' => 'require|isNotEmpty',
        'province' => 'require|isNotEmpty',
        'city' => 'require|isNotEmpty',
        'country' => 'require|isNotEmpty',
        'detail' => 'require|isNotEmpty',
    ];

}